<template>
  <a-time-picker :default-value="moment(defaulttime, 'HH:mm:ss')"   :value="value" @change="onChange" size="small"/>
</template>

<script>
import moment from "moment";
export default {
  name: "mtimepicker",
  props:{
    defaulttime:{
      type: String,
      default: '00:00:00',
      }

  },
  data(){
    return{
      value:null,
      moment:moment
    }
  },
  watch:{

  },
  methods:{
    onChange(time) {
      this.value = time
      let times=time.format('HH:mm:ss');
      this.$emit('input',times)
    },
  }
};
</script>

<style scoped>

</style>
